home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 4 / Precision Software Applications Silver Collection Volume 4 (1993).iso / new / ace160.arj / MACRO.DOC < prev    next >
Text File  |  1993-07-25  |  38KB  |  1,352 lines

  1.  
  2.          
  3.          
  4.          
  5.          
  6.          
  7.          
  8.          
  9.          
  10.          
  11.          
  12.          
  13.          
  14.          
  15.          
  16.          
  17.          
  18.          
  19.          
  20.          
  21.          
  22.          
  23.                              AceComm & Utilities (Tm)
  24.          
  25.                                   Version  1.60
  26.          
  27.             "Leading Software Technology"  for todays hi-speed modem
  28.          
  29.                             Evaluation copy 07/25/93
  30.          
  31.                                     MACROS
  32.          
  33.          
  34.          
  35.          
  36.          
  37.          
  38.          
  39.          
  40.          
  41.          
  42.          
  43.          
  44.          
  45.          
  46.          
  47.          
  48.          
  49.          
  50.          
  51.          
  52.          
  53.          
  54.          
  55.          
  56.          
  57.          
  58.          
  59.          
  60.          
  61.          
  62.          
  63.          
  64.                            AceComm & Utilities User Manual
  65.                                    Version 1.60
  66.                   Copyright (c) 1990 - 1993 all rights reserved
  67.                                        by
  68.                    MGP Programming Services & Michael G Phelps
  69.          
  70.          
  71.          
  72.          
  73.          
  74.          
  75.          
  76.          
  77.          
  78.          
  79.          
  80.          
  81.          
  82.          
  83.          
  84.          
  85.          
  86.          
  87.          
  88.          
  89.          
  90.          
  91.                                                  ┌─────────┐
  92.                                            ┌─────┴───┐     │          (R)
  93.                                          ──│         │o    │──────────────
  94.          AceComm Support Services          │   ┌─────┴╨──┐ │Association of
  95.          Michael G Phelps                  │   │         │─┘  Shareware
  96.          3003 N. Central Ave Suite 121-171 └───│    o    │  Professionals
  97.          Phoenix, AZ  85012  USA         ──────│    ║    │────────────────
  98.                                                └────╨────┘    MEMBER
  99.          Telephone   (602) 846-4563 (12 - 7pm MST 6 days)
  100.          AceComm BBS (602) 846-2940
  101.          CompuServe  75120,3306
  102.          
  103.          
  104.          
  105.          
  106.          
  107.          
  108.          
  109.          
  110.          
  111.          
  112.                                       CONTENTS
  113.          -----------------------------------------------------------------
  114.          
  115.          Chapter 1  AceComm  MACRO Programming Language.................1
  116.          Chapter 2  MACROS..............................................3
  117.                        Local User Input (LUI) Functions.................3
  118.                        Character I/O Functions..........................7
  119.                        File Functions..................................10
  120.                        Data Transfer functions.........................11
  121.                        Modem Functions.................................14
  122.                        FON Record / Dialing............................15
  123.                        Misc Functions..................................17
  124.          Chapter 3  MACRO Parameter Functions..........................18
  125.                        Expandable MACRO Parameters.....................18
  126.                        Expandable MACRO Functions......................22
  127.          
  128.          
  129.          
  130.          
  131.          
  132.          
  133.          
  134.          
  135.          
  136.          
  137.          
  138.          
  139.          
  140.          
  141.          
  142.          
  143.          
  144.          
  145.          
  146.          
  147.          
  148.          
  149.          
  150.          
  151.          
  152.          
  153.          
  154.          
  155.          
  156.          
  157.          
  158.          
  159.          
  160.          
  161.          
  162.          
  163.          
  164.          
  165.          Chapter 1  AceComm  MACRO Programming Language
  166.          
  167.          
  168.          Please submit all MACRO suggestions to
  169.          
  170.          a)  MSG to Michael Phelps on the AceComm Support BBS
  171.          b)  MSG to Michael Phelps on Compuserve UID 75120,3306
  172.          
  173.          Reference to characters such as carriage return,  space,  escape,
  174.          etc.   are  made  in  this document.  Reference to a character is
  175.          made in the following manner.  <CR> <SP> where <CR> refers  to  a
  176.          carriage  return,  and  <SP> refers to a space character.  MACROS
  177.          are bounded by the  same  <>  brackets  as  character  reference.
  178.          Character  references  are  not MACROS.  A complete MACRO listing
  179.          follows this chapter.
  180.          
  181.          -- MACROS --
  182.          o   MACROS are directives bounded inside of angle brackets < >
  183.          o   MACROS must have a SPACE character in front of them when not
  184.              the first command on a line.
  185.          
  186.           <ChgDir>[DIR_MAIL] <RunProgram>BWAVE <ChgDir>[DIR_START]
  187.                             |                 |
  188.                             |_________________|
  189.                             |
  190.                             Leading space
  191.          
  192.          o   MACROS may be any combination of CaSe
  193.          
  194.           <RunProgram> jmodem
  195.           <runprogram> jmodem
  196.          
  197.          o   The MACRO PROCESSOR supports MACRO STACKING
  198.          o   MACRO STACKING means multiple MACROS per line
  199.          
  200.           <SendStr>u z ACE0601.ARJ^M <SendZmo>files\ace0601.arj
  201.           <SendStr>u z ACE0601.ARJ^M <RunProgram>DSZ sz -m files\ace0601.arj
  202.           <SetDTR> ON <SendStr>ATDT846-2940^M <WaitStr>CONNECT <SendStr>^[^[
  203.          
  204.          
  205.          o   MACRO DATA PARAMETERS are bounded inside of square
  206.              brackets [ ]
  207.              MACRO DATA PARAMETERS need not have a <SP> charin front of them
  208.              MACRO DATA PARAMETERS must be upper CASE
  209.          
  210.           <SendStr>[USER_NAME]^MY^M[FON_REC_PWD]
  211.                    |
  212.                    |
  213.                    DATA PARAM (IEMSI data)
  214.          
  215.          
  216.          
  217.                 Page 1              AceComm & Utilities (Tm)
  218.          
  219.          
  220.          Chapter 1  AceComm  MACRO Programming Language
  221.          
  222.           <SendStr>[USER_NAME]^M~~~~[PASSWORD]^M
  223.           |        |         |   |
  224.           |        |         |   One second delay (~ = 1/4 second delay)
  225.           MACRO    |         |
  226.                    |         Control character representation for <CR>
  227.                    |
  228.                    MACRO DATA PARAMETER (IEMSI data)
  229.          
  230.          
  231.          o   MACRO FUNCTION PARAMETERS are prefixed with a % character
  232.          
  233.           <SendZmo> %PF
  234.            |        |
  235.            |        MACRO FUNCTION PARAMATER (prompt for filename)
  236.            |
  237.            Internal Zmodem sending unit
  238.          
  239.           <RunProgram>dsz port %P speed %B sz %PF %WK <SendStr>^M
  240.                                |        |     |   |
  241.                                |        |     |   |
  242.                                |        |     |   MACRO FUNCTION PARAM
  243.                                |        |     |   (wait for key press)
  244.                                |        |     |
  245.                                |        |     MACRO FUNCTION PARAM
  246.                                |        |     (prompt for filename)
  247.                                |        |
  248.                                |        MACRO FUNCTION PARAM
  249.                                |        (insert ascii baud)
  250.                                |
  251.                                MACRO FUNCTION PARAM
  252.                                (insert ascii port)
  253.          
  254.          
  255.          
  256.          
  257.          
  258.          
  259.          
  260.          
  261.          
  262.          
  263.          
  264.          
  265.          
  266.          
  267.          
  268.          
  269.          
  270.          
  271.          
  272.                 Page 2              AceComm & Utilities (Tm)
  273.          
  274.          
  275.          Chapter 2  MACROS
  276.          
  277.                     Local User Input (LUI) Functions
  278.          
  279.          
  280.          LUI MACROS require local keyboard input, and so  are  not  suited
  281.          to un-attended scripts.
  282.          LUI MACROS contain a '_' underscore as the last character
  283.          inside the brackets.
  284.          
  285.          
  286.          
  287.          <AutoScrGen_>
  288.          
  289.             Toggle AutoScrGen(tm) mode
  290.          
  291.             Toggle  AutoScript  Generation  mode  On/Off.   When  "On"  an
  292.             extended status line will appear at the bottom of the TERMINAL
  293.             screen.   At  the far left of the extended status line will be
  294.             the phrase "AutoSriptGen"
  295.          
  296.          
  297.          <BackBuffer_>
  298.          
  299.             Menu Area
  300.             Enter Back Buffer Screen Area
  301.          
  302.             BackBuffer contains the last n lines of display that  scrolled
  303.             off the TERMINAL screen.  BackBuffer has a status line of it's
  304.             own.   The  status  line  contains such information as current
  305.             line position into the buffer, total lines buffered, and  some
  306.             of the navigational keys are displayed.  Hold the ALT key down
  307.             for the POP UP REFERENCE available for the BackBuffer area.
  308.          
  309.          
  310.          <CaptureFile_>
  311.          
  312.             Toggle Capture File
  313.             Prompts for filename
  314.          
  315.             Capture  will  also  prompt  for append or overwrite.  Capture
  316.             does absolutely  NO  filtering  of  any  kind.   All  data  is
  317.             recorded  to  file  "as  it  comes  in the port".  The AceComm
  318.             package comes with separate utilities which  can  strip  video
  319.             control codes from files.
  320.          
  321.          
  322.          <CommandShell_>
  323.          
  324.             Enter Shell to Command Processor/ Operating System
  325.          
  326.          
  327.                 Page 3              AceComm & Utilities (Tm)
  328.          
  329.          
  330.          Chapter 2  MACROS
  331.          
  332.                     Local User Input (LUI) Functions (continued)
  333.          
  334.          
  335.             In  most cases "Drop to DOS", if your DOS compatible operating
  336.             system places it's name in the environment where  AceComm  can
  337.             find  it.   "Shell"  is  not hard wired to COMMAND.COM but the
  338.             COMMAND PROCESSOR as found in the environmental data area.
  339.          
  340.          
  341.             Notes: When SWAP is  "ON",  the  serial  port  is  effectively
  342.                    disabled  during  the  shell.   When  SWAP is "OFF" the
  343.                    serial port remains active and  any  incoming  data  is
  344.                    handled  properly,  unless  the  receive  buffer  wraps
  345.                    around.
  346.          
  347.          <FileRequest_>
  348.             Menu driven EMSI file request function.
  349.          
  350.          
  351.          <FonListDialer_>
  352.          
  353.             Menu Area
  354.             Enter .FON List / Dialer
  355.          
  356.             Dial/.FON directory area.  While AceComm allows manual dialing
  357.             from inside the TERMINAL area, it most convenient to dial from
  358.             a  record contained in one of the .FON files available for use
  359.             from the DIAL area.
  360.          
  361.          
  362.          <FileLister_>
  363.          
  364.             Menu Area
  365.             Enter File Lister
  366.          
  367.             Files lister inside AceComm provides a  basic  directory  list
  368.             function   capable   of   changing   directories  and  drives.
  369.             File-marking,    deletion,    selection    for     appropriate
  370.             file-utility,  etc.   LISTFILES  may be created.  ACE.BCH is a
  371.             file created by the Tag feature inside the File  Lister  Area.
  372.             files tagged will be listed inside ACE.BCH as CR LF terminated
  373.             strings.   When  selecting  any  of  AceComm's  internal batch
  374.             capable sending protocols, AceComm will check for the existent
  375.             of the file ACE.BCH and allow sending  from  the  LISTFILE  if
  376.             desired.
  377.          
  378.          
  379.          <MdmHangUp_>
  380.          
  381.          
  382.                 Page 4              AceComm & Utilities (Tm)
  383.          
  384.          
  385.          Chapter 2  MACROS
  386.          
  387.                     Local User Input (LUI) Functions (continued)
  388.          
  389.          
  390.             Prompts Yes/no before,
  391.             Sends PRM-data MDM_HANGUP string to modem.  Waits 1/2  second,
  392.             then drops DTR for 1 second.
  393.          
  394.          
  395.          <PrmDataMenus_>
  396.          
  397.             Menu Area
  398.             Enter PRM-data Menu Area
  399.          
  400.             Notes: When AutoSave is "ON", all data changed is automatically
  401.                    saved when exiting the PRM-data area.
  402.          
  403.          
  404.          <RProtocols_>
  405.          
  406.             Menu Area
  407.             Enter Receive Unit Protocols Area
  408.          
  409.          
  410.          <RunScriptFile_>
  411.          
  412.             List .SCR directory, Allow selection, Run selected .SCR file
  413.          
  414.             Lists  the  PRM-data .SCR directory Allows selection of a .SCR
  415.             file for immediate execution.
  416.          
  417.             Notes:  AceComm  allows  .SCR file as an argument when started
  418.                    which immediately executes the script.
  419.          
  420.          
  421.          <ScrnSnapShot_>
  422.          
  423.             Menu Area
  424.             Take Screen Snapshot
  425.          
  426.             Create a "SnapShot" of the current  screen  minus  any  status
  427.             lines  active.  Prompts for a filename.  Filenames always will
  428.             have the .SNA extension.  AceComm can detect  and  will  strip
  429.             away filename extensions provided by the user when they do not
  430.             match  that  of  the function.  This command is available from
  431.             most ALT POP UP REFERENCE areas.
  432.          
  433.          
  434.          <ScrnTag_>
  435.          
  436.          
  437.                 Page 5              AceComm & Utilities (Tm)
  438.          
  439.          
  440.          Chapter 2  MACROS
  441.          
  442.                     Local User Input (LUI) Functions (continued)
  443.          
  444.          
  445.             Menu Area
  446.             Enter Screen Tagger Screen Area
  447.          
  448.             Tagger will allow tagging to the  first  SPACE_CHAR  or  press
  449.             RIGHT-ARROW  Tagger  tags the entire line of text.  Tagger has
  450.             it's own status line, and a block cursor will appear inside of
  451.             the Tagger mode.  Tagged items will be assigned  to  the  next
  452.             available SHIFT-Fn key.
  453.          
  454.             Tagger  pops  up  the  SHIFT-Fn  key  window and displays each
  455.             tagged item, as they are tagged.  Tagger  is  most  handy  for
  456.             grabbing  filenames  for  download off a BBS screen.  SHIFT-Fn
  457.             key fires the tagged item back when ready.   This  command  is
  458.             available from most ALT POP UP REFERENCE areas.
  459.          
  460.          
  461.          <SProtocols_>
  462.          
  463.             Menu Area
  464.             Enter Sending Unit Protocols Area
  465.          
  466.          
  467.          <ViewKeyCombos>
  468.          
  469.             Bring up Pop up Reference
  470.          
  471.          
  472.          
  473.          
  474.          
  475.          
  476.          
  477.          
  478.          
  479.          
  480.          
  481.          
  482.          
  483.          
  484.          
  485.          
  486.          
  487.          
  488.          
  489.          
  490.          
  491.          
  492.                 Page 6              AceComm & Utilities (Tm)
  493.          
  494.          
  495.          Chapter 2  MACROS
  496.          
  497.                     Character I/O Functions
  498.          
  499.          
  500.          <WaitStr> STRING
  501.          
  502.             Waits for a CASE sensitive string (sequence of characters)  to
  503.             come  in the from the modem.  Can TIMEOUT.
  504.          
  505.             Notes:  The  example  below contains a SPACE_CHAR as the first
  506.                    character of STRING.
  507.          
  508.                    <WaitStr> name:
  509.          
  510.             Arguments  to  MACROS  are  taken  as  is,  up  until the first
  511.             <CR> on the line of text.
  512.          
  513.             A normal text editor in ASCII TEXT mode will have  placed  the
  514.             CR_CHAR as the byte following the ':' character in the example
  515.             STRING  below  '  name:'.   File Functions internal to AceComm
  516.             will  filter  the  leading  SPACE_CHAR  from  the  MACRO  ARG.
  517.          
  518.          
  519.          <SendStr> STRING
  520.          
  521.             Sends   a   string  to  the  modem.   Does  CONTROL  CHARACTER
  522.             TRANSLATION.
  523.          
  524.                <SendStr>^M
  525.                 Send a single CR_CHAR
  526.          
  527.                <SendStr>  Michael  Phelps^M
  528.                 Notes: the leading SPACE_CHAR part of STRING
  529.          
  530.                <SendStr>[USER_NAME]^M~~~~Y^M~~~~[FON_REC_PWD]
  531.                 Send IEMSI data user name field, a <CR> char, 1 second
  532.                 pause, Y, <CR> char, 1 second pause, current
  533.                 Fon.Record.Password.
  534.          
  535.                <SendStr>[USER_NAME]^M^M[PASSWORD]^M
  536.                 Send IEMSI data user name field, 2 <CR> chars, IEMSI
  537.                 data password field.
  538.          
  539.          <DoorWayMode>
  540.          
  541.             Toggle doorway mode.  Saves the  key  press  combo  on  entry,
  542.             whatever  key-combo  you  assign <DoorWayMode> to, is the only
  543.             way out.  Doorway sends all key presses to the modem in  their
  544.             RAW  'un-cooked'  form.  Non extended key presses are send LOW
  545.          
  546.          
  547.                 Page 7              AceComm & Utilities (Tm)
  548.          
  549.          
  550.          Chapter 2  MACROS
  551.          
  552.                     Character I/O Functions (continued)
  553.          
  554.             BYTE ONLY.  Extended key presses are sent LOW BYTE, HIGH BYTE.
  555.          
  556.          
  557.          <HostEcho>
  558.          
  559.             Toggle Host echo mode.  This macro  emulates  HostMode's  ECHO
  560.             capability.  It does not answer the phone.  However modems set
  561.             up for auto answer function normally.
  562.          
  563.          
  564.          <AutoAnswer> On
  565.          
  566.             PRM-data MDM_HOST_INIT is sent to the modem when hostmode flag
  567.             is toggle "ON".  PRM-data MDM_INIT is sent to the modem when
  568.             hostmode flag is toggled "OFF".  AceComm begins responding to
  569.             the RI bit SET, and will send the MDM_ANSWER string to the
  570.             modem when RI BIT becomes asserted.  <HostEcho> becomes
  571.             active.
  572.          
  573.             AutoAnswer is also terminated whenever the user dials  out  from
  574.             the FON LIST MENU AREA.
  575.          
  576.             See your modems S7 register as an alternative.
  577.          
  578.          <LocalEcho>'  ,0
  579.          
  580.             Toggle local character echo.  Local key-presses will be echoed
  581.             to the screen.  (same effect as sending "ATE1^M" to the modem)
  582.          
  583.          
  584.          <SendEMSI_CLI>
  585.          
  586.             Send an EMSI_CLI HDR sequence to modem
  587.          
  588.             BBS  mailer  front ends that use EMSI handshake protocol will,
  589.             if EMSI is implemented properly, interpret an  "EMSI_CLI"  HDR
  590.             sequence,  as  "this  is  a  human caller" and drop to the BBS
  591.             without any delay.  Note: At  this  writing  Front  Door,  and
  592.             Binkley  recognize  EMSI_CLI  HDR.   DBridge  does  not.   See
  593.             default AutoD trigger assignments (ACE.CTL)
  594.          
  595.          
  596.          <SendEMSI_ICI>
  597.          
  598.             Send an EMSI_ICI data packet to modem
  599.          
  600.          
  601.          
  602.                 Page 8              AceComm & Utilities (Tm)
  603.          
  604.          
  605.          Chapter 2  MACROS
  606.          
  607.                     Character I/O Functions (continued)
  608.          
  609.             EMSI_ICI is a response made by the caller (CLIENT)  to  a  BBS
  610.             system   (HOST)  which  supports  Interactive  EMSI  handshake
  611.             protocol.  IEMSI data is contained inside the  PRM-data  area.
  612.             This  data  can  be used for automating log on when call a BBS
  613.             that supports IEMSI.  See default  AutoD  trigger  assignments
  614.             (ACE.CTL)
  615.          
  616.          
  617.          
  618.          
  619.          
  620.          
  621.          
  622.          
  623.          
  624.          
  625.          
  626.          
  627.          
  628.          
  629.          
  630.          
  631.          
  632.          
  633.          
  634.          
  635.          
  636.          
  637.          
  638.          
  639.          
  640.          
  641.          
  642.          
  643.          
  644.          
  645.          
  646.          
  647.          
  648.          
  649.          
  650.          
  651.          
  652.          
  653.          
  654.          
  655.          
  656.          
  657.                 Page 9              AceComm & Utilities (Tm)
  658.          
  659.          
  660.          Chapter 2  MACROS
  661.          
  662.                     File Functions
  663.          
  664.          
  665.          <SetFonFile> FILENAME
  666.          
  667.             Tacks  FILENAME  onto  the  PATH  defined in PRM DATA for .FON
  668.             files.  AceComm keeps track of the current(last accessed) .FON
  669.             file.  FILENAME becomes the current .FON  file.   <SetFonFile>
  670.             1_114.fon <DialRecord> 1
  671.          
  672.          
  673.          <ChgDir> FILENAME
  674.          
  675.             Make FILENAME current directory
  676.          
  677.          
  678.          <RunScriptFile> FILENAME
  679.          
  680.             Open and run FILENAME
  681.          
  682.             Notes:  Just FILENAME no PATH.  PATH found in PRM-data as .SCR
  683.                     is used.
  684.          
  685.          
  686.          <RunProgram> FILENAME
  687.          
  688.             Spawn an executable file.   Can  search  the  DOS  PATH.   Can
  689.             determine files's extension (.COM, .EXE).  All system ISRs are
  690.             restored  before  the  spawn  takes place.  The serial port is
  691.             un-hooked.  The state of DCD, and LINE  CONTROL  are  left  in
  692.             tact.
  693.          
  694.             After  the  spawn the system ISRs AceComm uses are taken back,
  695.             the serial port is re-assumed.
  696.          
  697.             SWAP FLAG "ON" and XMS,EMS,  or  DISK  swapping  takes  place.
  698.             SWAP  FLAG "OFF" and AceComm is left in memory, with exception
  699.             to first restoring the serial port and interrupts.
  700.          
  701.          
  702.          
  703.          
  704.          
  705.          
  706.          
  707.          
  708.          
  709.          
  710.          
  711.          
  712.                 Page 10              AceComm & Utilities (Tm)
  713.          
  714.          
  715.          Chapter 2  MACROS
  716.          
  717.                     Data Transfer functions
  718.          
  719.          
  720.          <SendASCII> C:\MSG\COMM\ASCII.TX1
  721.          
  722.             Outputs from a file to the modem.  Sends  the  complete  file.
  723.             Does  *NO*  CONTROL  CHARACTER  TRANSLATION.  Data sent to the
  724.             modem is paced for buffer FULL, and all handshaking is valid.
  725.          
  726.             ESC-key press aborts the function.
  727.          
  728.          
  729.          <SendZmo> FILENAME
  730.          
  731.             Call internal zmodem sending unit with 1k data frame size.
  732.          
  733.             ESC-key press aborts the function.
  734.          
  735.          
  736.          <RecvZmo>
  737.          
  738.             Call internal zmodem recv  unit.   AceComm's  internal  zmodem
  739.             receiver  is capable of up to 8k data frame size.  The receive
  740.             unit will continue  in  batch  mode  until  the  sender  stops
  741.             sending files, or the user terminates the transfer.  Files are
  742.             placed  into the directory pointed to in the PRM-data area for
  743.             Downloads.
  744.          
  745.             ESC-key press aborts the function.
  746.          
  747.          
  748.          <SendYmo> FILENAME
  749.          
  750.             Call internal ymodem sending unit with  128  byte  data  frame
  751.             size.
  752.          
  753.             ESC-key press aborts the function.
  754.          
  755.          
  756.          <SendYmo1k> FILENAME
  757.          
  758.             Call internal ymodem sending unit with 1k data frame size.
  759.          
  760.             ESC-key press aborts the function.
  761.          
  762.          
  763.          <SendYmoG> FILENAME
  764.          
  765.          
  766.          
  767.                 Page 11              AceComm & Utilities (Tm)
  768.          
  769.          
  770.          Chapter 2  MACROS
  771.          
  772.                     Data Transfer functions (continued)
  773.          
  774.             Call internal ymodemG sending unit with 1k data frame size.
  775.          
  776.             ESC-key press aborts the function.
  777.          
  778.          
  779.          <SendXmo> FILENAME
  780.          
  781.             Call  internal  xmodem  sending  unit with 128 byte data frame
  782.             size.
  783.          
  784.             ESC-key press aborts the function.
  785.          
  786.          
  787.          <SendXmo1k> FILENAME
  788.          
  789.             Call internal xmodem sending unit with 1k data frame size.
  790.          
  791.             ESC-key press aborts the function.
  792.          
  793.          
  794.          <RecvYmo>
  795.          
  796.             Call internal ymodem.  The receive unit will continue in batch
  797.             mode until  the  sender  stops  sending  files,  or  the  user
  798.             terminates  the transfer.  Files are placed into the directory
  799.             pointed to in the PRM-data area for Downloads.
  800.          
  801.             ESC-key press aborts the function.
  802.          
  803.          <RecvYmo1K>
  804.          
  805.             Call internal ymodem1K.  The receive  unit  will  continue  in
  806.             batch  mode  until the sender stops sending files, or the user
  807.             terminates the transfer.  Files are placed into the  directory
  808.             pointed to in the PRM-data area for Downloads.
  809.          
  810.             ESC-key press aborts the function.
  811.          
  812.          
  813.          <RecvYmoG>
  814.          
  815.             Call  internal  ymodemG.   The  receive  unit will continue in
  816.             batch mode until the sender stops sending files, or  the  user
  817.             terminates  the transfer.  Files are placed into the directory
  818.             pointed to in the PRM-data area for Downloads.
  819.          
  820.          
  821.          
  822.                 Page 12              AceComm & Utilities (Tm)
  823.          
  824.          
  825.          Chapter 2  MACROS
  826.          
  827.                     Data Transfer functions (continued)
  828.          
  829.             ESC-key press aborts the function.
  830.          
  831.          
  832.          <RecvXmo> FILENAME
  833.          
  834.             Call internal xmodem.  Files are  placed  into  the  directory
  835.             pointed to in the PRM-data area for Downloads.
  836.          
  837.             ESC-key press aborts the function.
  838.          
  839.          <RecvXmo1K> FILENAME
  840.          
  841.             Call  internal  xmodem1k.  Files are placed into the directory
  842.             pointed to in the PRM-data area for Downloads.
  843.          
  844.             ESC-key press aborts the function.
  845.          
  846.          
  847.          
  848.          Xmodem/Ymodem Receive units are  capable  of  adopting  to  frame
  849.          size.   128  /  1024 data frames are determined by the sender and
  850.          can be sent in any combination.
  851.          
  852.          The Internal Zmodem in AceComm  is  capable  of  up  to  8k  data
  853.          frames.  For compatibility, AceComm only uses larger than 1k data
  854.          frames  with it's sending unit in mailer modes.  AceComm's zmodem
  855.          receive unit can handle up to 8k data frames at any time.
  856.          
  857.          
  858.          
  859.          
  860.          
  861.          
  862.          
  863.          
  864.          
  865.          
  866.          
  867.          
  868.          
  869.          
  870.          
  871.          
  872.          
  873.          
  874.          
  875.          
  876.          
  877.                 Page 13              AceComm & Utilities (Tm)
  878.          
  879.          
  880.          Chapter 2  MACROS
  881.          
  882.                     Modem Functions
  883.          
  884.          
  885.          <DialRecord> n
  886.          
  887.             Retrieves the n record found in current .FON file
  888.          
  889.             Re dials number until CONNECT or USER ABORT
  890.          
  891.                 <SetFonFile> 1_114.FON <DIALRECORD> 1
  892.          
  893.          
  894.          <DialNum> PHONE_NUMBER
  895.          
  896.             Builds a  dial  string.   Uses  PRM-data  MDM_DIAL_PREFIX  and
  897.             PHONE_NUMBER  Sends  the  dial string to the modem.  One time.
  898.             No re dials
  899.          
  900.          
  901.          <SetDTR> ON/OFF
  902.          
  903.             SET or RESET UART BIT
  904.          
  905.                  <SetDtr> OFF
  906.          
  907.          
  908.          
  909.          
  910.          
  911.          
  912.          
  913.          
  914.          
  915.          
  916.          
  917.          
  918.          
  919.          
  920.          
  921.          
  922.          
  923.          
  924.          
  925.          
  926.          
  927.          
  928.          
  929.          
  930.          
  931.          
  932.                 Page 14              AceComm & Utilities (Tm)
  933.          
  934.          
  935.          Chapter 2  MACROS
  936.          
  937.                     FON Record / Dialing
  938.          
  939.          
  940.          <InitFonRec> RECORD NAME
  941.          
  942.             This  MACRO must be called first.  The MACRO initializes a FON
  943.             RECORD with AceComm defaults.  RECORD NAME is copied into  the
  944.             system name for this record.
  945.          
  946.                <InitFonRec> Compuserve
  947.          
  948.          
  949.          <FonRecNum> PHONE_NUMBER
  950.          
  951.             Set  the  phone  number field.  Any dial statements in ACE.CFG
  952.             will be applied to this number when AceComm  builds  the  dial
  953.             string.
  954.          
  955.                <FonRecNum>468-0285
  956.          
  957.          
  958.          <FonRecBaud>BAUD
  959.          
  960.             If  using  a  locked port, AceComm will ignore this value when
  961.             getting ready to dial.
  962.          
  963.                <FonRecBaud>19200
  964.          
  965.          
  966.          <FonRecLineCtrl> DATA_PARITY_STOPBIT
  967.          
  968.             Valid parameters are as follows
  969.                   8n1
  970.                   7e1
  971.                   7n1
  972.          
  973.                <FonRecLineCtrl>8n1
  974.          
  975.          
  976.          <FonRecTerm> VIDEO_TYPE
  977.          
  978.                - Valid parameters are as follows
  979.          
  980.                  TTY
  981.                  Ansi
  982.                  Avatar
  983.                  Av/An
  984.                  VT102
  985.          
  986.          
  987.                 Page 15              AceComm & Utilities (Tm)
  988.          
  989.          
  990.          Chapter 2  MACROS
  991.          
  992.                     FON Record / Dialing (continued)
  993.          
  994.          
  995.                <FonRecTerm>Av/An
  996.          
  997.          
  998.          <RedialFonRec>
  999.          
  1000.             Presents the FON record to the AceComm re dial function.
  1001.          
  1002.          
  1003.          
  1004.          
  1005.          
  1006.          
  1007.          
  1008.          
  1009.          
  1010.          
  1011.          
  1012.          
  1013.          
  1014.          
  1015.          
  1016.          
  1017.          
  1018.          
  1019.          
  1020.          
  1021.          
  1022.          
  1023.          
  1024.          
  1025.          
  1026.          
  1027.          
  1028.          
  1029.          
  1030.          
  1031.          
  1032.          
  1033.          
  1034.          
  1035.          
  1036.          
  1037.          
  1038.          
  1039.          
  1040.          
  1041.          
  1042.                 Page 16              AceComm & Utilities (Tm)
  1043.          
  1044.          
  1045.          Chapter 2  MACROS
  1046.          
  1047.                     Misc Functions
  1048.          
  1049.          
  1050.          <EndAcecomm> ERRORLEVEL
  1051.          
  1052.          <EndAcecomm> 0
  1053.             AceComm session end.
  1054.          
  1055.             Exit AceComm  back  to  the  operating  system.   End  AceComm
  1056.             session.   A QUICK snap, no prompt "Are you sure?".  If your on
  1057.             line, your still on line when you come back unless  "drop  DTR
  1058.             on exit is SET"
  1059.          
  1060.             See Drop DTR on EXIT flag inside Terminal Area Options
  1061.          
  1062.          
  1063.          <ClearWindow>
  1064.          
  1065.             Clear screen. Clears screen above status line
  1066.          
  1067.          
  1068.          <SendDelay> SECONDS
  1069.          
  1070.             Create wait delay before sending the next <SendStr> string
  1071.          
  1072.          
  1073.          <Delay> SECONDS
  1074.          
  1075.             Create program function delay.
  1076.          
  1077.          <ENDS>
  1078.          
  1079.             Mark the end of a script.
  1080.          
  1081.          <RingBell> SECONDS
  1082.          
  1083.             A value of 0 does not ring bell, a value of 1 plays a
  1084.             victory tune, values from 2 - 30 ring the internal bell for
  1085.             the number of seconds. This is the same bell sound heard in
  1086.             the Dial/Connect window.
  1087.          
  1088.          
  1089.          
  1090.          
  1091.          
  1092.          
  1093.          
  1094.          
  1095.          
  1096.          
  1097.                 Page 17              AceComm & Utilities (Tm)
  1098.          
  1099.          
  1100.          Chapter 3  MACRO Parameter Functions
  1101.          
  1102.                     Expandable MACRO Parameters
  1103.          
  1104.          
  1105.          MACRO parameters are UPPER case only
  1106.          
  1107.          The following are data from Fon.Records
  1108.          
  1109.          
  1110.          [FON_REC_PWD]
  1111.          
  1112.             Replaced with the current FON RECORD'S "password"
  1113.          
  1114.          
  1115.          [FON_REC_CAP]
  1116.          
  1117.             Replaced with the current FON RECORD'S CAPTURE "filename"
  1118.          
  1119.          
  1120.          [FON_REC_SCR]
  1121.          
  1122.             Replaced with the current FON RECORD'S SCRIPT "filename"
  1123.          
  1124.          The following are data from PRM-data IEMSI section
  1125.          
  1126.          
  1127.          [USER_NAME]
  1128.          
  1129.             Replaced with the current PRM-data/IEMSI "User Name"
  1130.          
  1131.                <SendStr> [USER_NAME]
  1132.          
  1133.          
  1134.          [ALIAS]
  1135.          
  1136.             Replaced with the current PRM-data/IEMSI "alias"
  1137.          
  1138.          
  1139.          [LOCATION]
  1140.          
  1141.             Replaced with the current PRM-data/IEMSI "location"
  1142.          
  1143.          
  1144.          [DATA_PNUM]
  1145.          
  1146.             Replaced with the current PRM-data/IEMSI "data #"
  1147.          
  1148.          
  1149.          [VOICE_PNUM]
  1150.          
  1151.          
  1152.                 Page 18              AceComm & Utilities (Tm)
  1153.          
  1154.          
  1155.          Chapter 3  MACRO Parameter Functions
  1156.          
  1157.                     Expandable MACRO Parameters (continued)
  1158.          
  1159.          
  1160.             Replaced with the current PRM-data/IEMSI "voice #"
  1161.          
  1162.          [PASSWORD]
  1163.          
  1164.             Replaced with the current PRM-data/IEMSI "password"
  1165.          
  1166.          
  1167.          The following are data from PRM-data DIRECTORY section
  1168.          
  1169.          
  1170.          [DIR_START]
  1171.          
  1172.             Replaced with the current PRM-data/DIR "start up"
  1173.          
  1174.          
  1175.          [DIR_FON]
  1176.          
  1177.             Replaced with the current PRM-data/DIR ".FON"
  1178.          
  1179.          
  1180.          [DIR_CAP]
  1181.          
  1182.             Replaced with the current PRM-data/DIR ".CAP"
  1183.          
  1184.          
  1185.          [DIR_SCR]
  1186.          
  1187.             Replaced with the current PRM-data/DIR ".SCR"
  1188.          
  1189.          
  1190.          [DIR_KTS]
  1191.          
  1192.             Replaced with the current PRM-data/DIR ".KTS"
  1193.          
  1194.          
  1195.          [DIR_DNLDS]
  1196.          
  1197.             Replaced with the current PRM-data/DIR "dnlds"
  1198.          
  1199.          <ChgDir> [DIR_DNLDS] <RunProgram>DSZ rz -mr <ChgDir> [DIR_START]
  1200.          
  1201.          
  1202.          [DIR_NODELIST]
  1203.          
  1204.             Replaced with the current PRM-data/DIR "nodelist"
  1205.          
  1206.          
  1207.                 Page 19              AceComm & Utilities (Tm)
  1208.          
  1209.          
  1210.          Chapter 3  MACRO Parameter Functions
  1211.          
  1212.                     Expandable MACRO Parameters (continued)
  1213.          
  1214.          
  1215.          
  1216.          [DIR_MAIL]
  1217.          
  1218.             Replaced with the current PRM-data/DIR "mail"
  1219.          
  1220.          
  1221.          The following are data from PRM-data MODEM section
  1222.          
  1223.          
  1224.          [MDM_INIT]
  1225.          
  1226.             Replaced with the current PRM-data/MDM "init"
  1227.          
  1228.          
  1229.          [DIAL_PREFIX]
  1230.          
  1231.             Replaced with the current PRM-data/MDM "dial prefix"
  1232.          
  1233.          
  1234.          [DIAL_SUFIX]
  1235.          
  1236.             Replaced with the current PRM-data/MDM "dial sufix"
  1237.          
  1238.          
  1239.          [ANSWER]
  1240.          
  1241.             Replaced with the current PRM-data/MDM "answer"
  1242.          
  1243.          
  1244.          [HANGUP]
  1245.          
  1246.             Replaced with the current PRM-data/MDM "hangup"
  1247.          
  1248.          
  1249.          [OFFHOOK]
  1250.          
  1251.             Replaced with the current PRM-data/MDM "off hook"
  1252.          
  1253.          
  1254.          [ABORT]
  1255.          
  1256.             Replaced with the current PRM-data/MDM "abort"
  1257.          
  1258.          
  1259.          [RESET]
  1260.          
  1261.          
  1262.                 Page 20              AceComm & Utilities (Tm)
  1263.          
  1264.          
  1265.          Chapter 3  MACRO Parameter Functions
  1266.          
  1267.                     Expandable MACRO Parameters (continued)
  1268.          
  1269.          
  1270.             Replaced with the current PRM-data/MDM "reset"
  1271.          
  1272.          
  1273.          [ECHO]
  1274.          
  1275.             Replaced with the current PRM-data/MDM "echo"
  1276.          
  1277.          
  1278.          [HOST_INIT]
  1279.          
  1280.             Replaced with the current PRM-data/MDM "host init"
  1281.          
  1282.          
  1283.          [CMD_LINE_TERMINATOR]
  1284.          
  1285.             Replaced   with   the   current   PRM-data/MDM  "command  line
  1286.             terminator"
  1287.          
  1288.          
  1289.          
  1290.          
  1291.          
  1292.          
  1293.          
  1294.          
  1295.          
  1296.          
  1297.          
  1298.          
  1299.          
  1300.          
  1301.          
  1302.          
  1303.          
  1304.          
  1305.          
  1306.          
  1307.          
  1308.          
  1309.          
  1310.          
  1311.          
  1312.          
  1313.          
  1314.          
  1315.          
  1316.          
  1317.                 Page 21              AceComm & Utilities (Tm)
  1318.      
  1319.  
  1320.          Chapter 3  MACRO Parameter Functions
  1321.          
  1322.                     Expandable MACRO Functions
  1323.          
  1324.          
  1325.          Expandable MACRO Functions are UPPER case only
  1326.          
  1327.          %B
  1328.             Insert ascii baud, %B is replaced with current baud setting
  1329.             is ascii format.
  1330.          
  1331.          %P
  1332.             Insert ascii port, %P is replaced with current port number
  1333.             is ascii format. Port number is 1 based (com1 =1, com2 =2)
  1334.          
  1335.          %FN   (Valid when used from <FileLister_>)
  1336.          
  1337.             Use from File Lister  Area,  %FN  is  replaced  with  currently
  1338.             "highlighted" filename.
  1339.          
  1340.          %PF
  1341.             Prompt  for  filename,  %PF is replaced with what you type into
  1342.             the prompt box.
  1343.          
  1344.          %WK
  1345.          
  1346.             Wait for Key press, stops MACRO execution and waits for a  key
  1347.             press.
  1348.          
  1349.      
  1350.  
  1351.          
  1352.